package com.magicborrow.view;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * 让子控件先处理分发时间，解决滑动冲突
 * 
 */
public class MyImageViewPager extends ViewPager {
	
	public MyImageViewPager(Context context) {
		super(context);
	}
	
	public MyImageViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}


	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		try {
			return super.onInterceptTouchEvent(ev);
		} catch (IllegalArgumentException e) {
			return false;
		}
	}

}
